package com.sctvcloud.dongqu.utils;

import android.os.AsyncTask;

/**
 * Created by Ly on 2016/11/29.
 */
public abstract class ResultAsyncTask<Result> extends AsyncTask<Void, Void, Result> {

    protected String logTag = "";

    protected Object obj;
    protected Object obj2;

    public ResultAsyncTask() {
    }

    public ResultAsyncTask(String logTag) {
        if (logTag != null) {
            this.logTag = logTag;
        }
    }

    public ResultAsyncTask(Object obj) {
        this.obj = obj;
    }

    public ResultAsyncTask(Object obj, Object obj2) {
        this.obj = obj;
        this.obj2 = obj2;
    }

    public ResultAsyncTask(Object obj, String logTag) {
        this.obj = obj;
        if (logTag != null) {
            this.logTag = logTag;
        }
    }

    public void ex() {
        executeOnExecutor(THREAD_POOL_EXECUTOR);
    }
}
